module.exports = {
  title: "LV's Blog",
  description:
    "The best time to plant a tree is ten years ago, followed by now.",
  head: [
    [
      "meta",
      {
        name: "viewport",
        content: "width=device-width,initial-scale=1,user-scalable=no",
      },
    ],
    ["link", { rel: "icon", href: "$withBase('/icons/favicon.ico')" }],
    ["link", { rel: "manifest", href: "/manifest.json" }],
    ["meta", { name: "theme-color", content: "#3eaf7c" }],
    ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
    [
      "meta",
      { name: "apple-mobile-web-app-status-bar-style", content: "black" },
    ],
    ["link", { rel: "apple-touch-icon", href: "/icons/apple-touch-icon.png" }],
    [
      "link",
      {
        rel: "mask-icon",
        href: "/icons/safari-pinned-tab.svg",
        color: "#3eaf7c",
      },
    ],
  ],
  locales: {
    "/": {
      lang: "zh-CN",
      recoLocales: {
        homeBlog: {
          friendLink: "友链", // 默认 友情链接
        },
      },
    },
  },
  markdown: {
    lineNumbers: true,
  },
  theme: "reco",
  themeConfig: {
    type: "blog",
    lastUpdated: "Last Updated",
    smoothScroll: true,
    nav: [
      { text: "主页", link: "/", icon: "reco-home" },
      { text: "时间轴", link: "/timeline/", icon: "reco-date" },
      {
        text: "留言板",
        link: "/features/message_board",
        icon: "reco-suggestion",
      },
      {
        text: "联系方式",
        icon: 'reco-account',
        items: [
          {
            text: "Github",
            link: "https://github.com/lvsong77",
            icon: "reco-github",
          },
          {
            text: "知乎",
            link: "https://www.zhihu.com/people/lu-wu-shang",
            icon: "reco-zhihu",
          },
        ],
      },
    ],
    blogConfig: {
      category: {
        location: 2, // 在导航栏菜单中所占的位置，默认2
        text: "分类", // 默认文案 “分类”
      },
      tag: {
        location: 3, // 在导航栏菜单中所占的位置，默认3
        text: "标签", // 默认文案 “标签”
      },
    },
    startYear: "2020", // project start time, year only
    author: "lv_song",
    logo: "/icons/favicon.ico", // 导航栏左侧logo
    authorAvatar: "/avatar.jpg", // 头像
    sidebar: "auto", //在所有页面中启用自动生成侧栏
    valineConfig: {
      appId: "96KhU3rfLs2VeW3bbrlinkYw-gzGzoHsz", // your appId
      appKey: "7W7kKbctMm4wBalRLxcMkHt4", // your appKey
      placeholder: "Please enter your valuable comments",
      avatar: "retro",
      visitor: true,
    },
    // friendLink: [
    //   {
    //     title: "vuepress-theme-reco",
    //     desc: "A simple and beautiful vuepress Blog & Doc theme.",
    //     logo: "https://vuepress-theme-reco.recoluan.com/icon_vuepress_reco.png",
    //     link: "https://vuepress-theme-reco.recoluan.com",
    //   },
    // ],
    // algolia: {
    //   apiKey: '<API_KEY>',
    //   indexName: '<INDEX_NAME>'
    // },
    // https://github.com/algolia/docsearch#docsearch-options 全局搜索
  },
  plugins: [
    // 图片放大
    "@vuepress/medium-zoom",
    // 名人名言
    "vuepress-plugin-boxx",
    // 看板娘
    [
      "@vuepress-reco/vuepress-plugin-kan-ban-niang",
      {
        theme: ["blackCat"],
        clean: true,
        modelStyle: {
          position: "fixed",
          right: "0px",
          bottom: "0px",
          opacity: "0.9",
          zIndex: 99999,
        },
      },
    ],
    // 动态标题
    [
      "dynamic-title",
      {
        // showIcon: "/favicon.ico",
        showText: "欢迎回来︿(￣︶￣)︿",
        // hideIcon: "/failure.ico",
        hideText: "咦？人去哪了？w(?Д?)w",
        recoverTime: 2000,
      },
    ],
    // PWA
    [
      "@vuepress/pwa",
      {
        serviceWorker: true,
        updatePopup: {
          message: "发现更新内容",
          buttonText: "立即获取",
        },
      },
    ],
    // 进度条
    ["@vuepress/nprogress"],
    // 链接转换为拼音
    [
      "permalink-pinyin",
      {
        lowercase: true, // Converted into lowercase, default: true
        separator: "-", // Separator of the slug, default: '-'
      },
    ],
    // 鼠标网状线特效
    [
      "nest",
      {
        color: "0,0,0", // color of lines, default: '0,0,0'; RGB values: (R,G,B).(note: use ',' to separate.)
        pointColor: "0,0,0", // color of points, default: '0,0,0'; RGB values: (R,G,B).(note: use ',' to separate.)
        opacity: 0.5, // the opacity of line (0~1), default: 0.5.
        count: 99, // the number of lines, default: 99.
        zIndex: -1, // z-index property of the background, default: -1.
        showInMobile: false, // whether to display on the mobile side, default: false.
      },
    ],
    // 图片懒加载
    ["img-lazy"],
    // 百度统计
    [
      "vuepress-plugin-baidu-tongji-analytics",
      {
        key: "d4f2400a09bb4ada1c3ce8342b342eb2",
        open: true, // 是否打开统计功能, default: true
        dev: false, // 是否在开发模式下生效, default: false
      },
    ],
    // 实时渲染vue代码
    ["live"],
    // 显示阅读进度
    ["reading-progress"],
    // 音乐播放器
    [
      "meting",
      {
        meting: {
          server: "netease",
          type: "playlist",
          mid: "5173689994",
        },
      },
    ],
    // 复制代码快捷按钮
    ["vuepress-plugin-code-copy", true],
  ],
};
